/***************************************************************************//**
 * @file GUI/PaneEFIS.h
 * @author  Marek M. Cel <marekcel@mscsim.org>
 *
 * @section LICENSE
 *
 * Copyright (C) 2013 Marek M. Cel
 *
 * This file is part of MScSim. You can redistribute and modify it under
 * the terms of GNU General Public License as published by the Free Software
 * Foundation; either version 3 of the License, or (at your option) any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
 * for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.
 * 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * Further information about the GNU General Public License can also be found
 * on the world wide web at http://www.gnu.org.
 ******************************************************************************/
#ifndef PANE_EFIS_H
#define PANE_EFIS_H

////////////////////////////////////////////////////////////////////////////////

#include <QDockWidget>

////////////////////////////////////////////////////////////////////////////////

namespace Ui
{
    class PaneEFIS;
}

////////////////////////////////////////////////////////////////////////////////

/** */
class PaneEFIS : public QDockWidget
{
    Q_OBJECT

public:

    /** Constructor. */
    explicit PaneEFIS( QWidget *parent = 0 );

    /** Destructor. */
    virtual ~PaneEFIS();

    /** */
    void update();

    /** @param roll angle [deg] */
    void setRoll( float roll );

    /** @param pitch angle [deg] */
    void setPitch( float pitch );

    /**
     * @param angle of attack [deg]
     * @param angle of sideslip [deg] */
    void setFlightPathMarker( float aoa, float sideslip );

    /** @param normalized slip or skid (range from -1.0 to 1.0) */
    void setSlipSkid( float slipSkid );

    /**
     * @param normalized turn rate (range from -1.0 to 1.0),
     * hash marks positions are set to be -0.5 and 0.5 */
    void setTurnRate( float turnRate );

    /** @param altitude (dimensionless numeric value) */
    void setAltitude( float altitude );

    /** @param airspeed (dimensionless numeric value) */
    void setAirspeed( float airspeed );

    /** @param Mach number */
    void setMachNo( float machNo );

    /** @param heading [deg] */
    void setHeading( float heading );

    /** @param climb rate (dimensionless numeric value)  */
    void setClimbRate( float climbRate );

private:

    Ui::PaneEFIS *m_ui; ///< Qt UI object
};

////////////////////////////////////////////////////////////////////////////////

#endif // PANE_EFIS_H
